Skip to content

[Other] setup: ask before Inkling 2's small-card settings, off by default - #249

Open
okada-shogo wants to merge 3 commits into
simplexai-labs:mainfrom
okada-shogo:port/setup-ask-small-card
Open

okada-shogo wants to merge 3 commits into
simplexai-labs:mainfrom
okada-shogo:port/setup-ask-small-card

Conversation

@okada-shogo

@okada-shogo okada-shogo commented Nov 23, 2026 •

Copy link
Copy Markdown

Stacked on #248 ("[Other] setup: drop --expert-swaps 0 from Inkling 2's small-card settings").
Review only the last two commits.

Problem and result

On a card that does not hold every expert, setup adds --attn-requant q5_0 --loop-bf16 --tail-skip 4 (VecSzn's
small-card settings) to Inkling 2 Mini's run config without asking, and there is no option to leave them out. They
lower answer quality:

  • --attn-requant q5_0 and --loop-bf16 round more coarsely.
  • --tail-skip 4 skips computation: a token's experts ranked 5th-8th that are not on the card are left out.
  • With them the same most likely token as without comes at 94.1-97.0% of the steps (two 8 GB cards, IQ4_NL and
    UD-Q2_K_XL, numbers in [Other] setup: drop --expert-swaps 0 from Inkling 2's small-card settings #248). A second run without them gives 98.3-99.3% (the noise floor).

Now setup asks, and the default is no:

  Your card can't hold every expert of UD-Q3_K_XL. The small-card settings make it faster here, but they lower
  answer quality: they round the attention and loop weights more coarsely and skip some experts per token
  (docs/models/inkling.md). --inkling-small-card on|off answers this without asking.
Use the faster small-card settings? [n]:
  • --inkling-small-card on|off answers without asking. --yes takes off.
  • The answer is kept in the run config ("small_card": "on"|"off"). A later setup run uses it and does not ask.
  • A card that holds every expert is not asked and gets none of them, as before.

This makes small cards slower by default. Decode tok/s (tokens written per second), median of 3 runs, higher is
better. "main (settings on)" is with the three settings of #248; "this PR alone (off)" is the new default, without
them (main d1f711e's engine, runs and logs in #248). Change is off against on.

Decode tok/s after a 302-token prompt:

Card Model Measure main (settings on) this PR alone (off, new default) Change
RTX 2070 Super 8 GB UD-Q2_K_XL decode after a 302-token prompt 46.7 39.4 −16%
RTX 2070 Super 8 GB IQ4_NL decode after a 302-token prompt 48.6 40.0 −18%
Quadro RTX 4000 8 GB UD-Q2_K_XL decode after a 302-token prompt 33.0 29.1 −12%
Quadro RTX 4000 8 GB IQ4_NL decode after a 302-token prompt 34.9 30.8 −12%

Decode tok/s after an 8,192-token prompt:

Card Model Measure main (settings on) this PR alone (off, new default) Change
RTX 2070 Super 8 GB UD-Q2_K_XL decode after an 8,192-token prompt 40.5 32.8 −19%
RTX 2070 Super 8 GB IQ4_NL decode after an 8,192-token prompt 40.7 32.1 −21%
Quadro RTX 4000 8 GB UD-Q2_K_XL decode after an 8,192-token prompt 27.6 24.9 −10%
Quadro RTX 4000 8 GB IQ4_NL decode after an 8,192-token prompt 28.0 24.3 −13%

From the docs, RTX 4070 Laptop 8 GB, UD-Q3_K_XL, with main's four settings (before #248) against none, not re-measured here,
decode tok/s:

Card Model Measure main (four settings on) this PR alone (off, new default) Change
RTX 4070 Laptop 8 GB UD-Q3_K_XL decode after a short chat 55.8 43.7 −22%
RTX 4070 Laptop 8 GB UD-Q3_K_XL decode after 30,902 tokens 41.9 33.6 −20%

Related discussion

none (follow-up to the small-card settings in 99cf818, #248, and the flag study in #247)

Approach

  • Same style as setup's other questions (the conversation cache): ask() with y/n, the default is the
    recommended answer, an explicit flag wins, and the answer is read back from the model's earlier run config
    (poly_saved_small_card, like poly_saved_kv / poly_saved_conv).
  • "small_card" is a setup key (SETUP_KEYS): it is written again on every run and dropped when the question does
    not apply.
  • A run config written by an older setup has the settings but no "small_card". That run asks again (default no)
    instead of keeping them, because nobody chose them.
  • --inkling-small-card for another family is reported in setup's "not used with ..." line.
  • Only Inkling 2 Mini has small_card_args. Other families' configs are unchanged.

Validation

Passed:

  • cd terminal && ~/polystrata/.venv/bin/python -m unittest tools.test_setup_inkling (13 tests, OK). New: asked +
    yes, asked + no, asked + Enter, --yes (not asked, off), --inkling-small-card on|off (not asked), a re-run
    keeps on and off (asked mode and --yes), the flag changes a kept answer, an older config without the key is
    asked again, a card that holds every expert is not asked, another family reports the flag as not used.
  • cd terminal && ~/polystrata/.venv/bin/python -m unittest $(ls tools/test_setup*.py | sed 's#/#.#; s#\.py$##')
    (90 modules): 1,365 tests, OK (skipped=1). Linux, Python 3.10, e8cce13 (the code; 7c31211 after it changes
    only docs).
  • python3 tools/check --only docs, 7c31211: passed (6 checks).
  • Speed and answer numbers above: from [Other] setup: drop --expert-swaps 0 from Inkling 2's small-card settings #248's runs (the same three settings), not re-run here.

Failed:

none observed

Not run:

  • A real install on an 8 GB card (the tests mock the GPU, downloads and engine build).
  • Windows (START-HERE.bat) and the app's install path; they call the same poly_setup(), but were not run.

Limits

Credits: the small-card settings are VecSzn's.

🤖 Generated with Claude Code

okada-shogo and others added 3 commits November 23, 2026 09:29
On a card that holds only part of the experts, --expert-swaps 0 keeps the
experts on the card as they were loaded. Fewer of a token's experts are
then found in VRAM and the CPU computes more of them: alone it wrote
16-23% slower after a 302-token prompt on an RTX 4060 Ti 16 GB, a Quadro
RTX 4000 8 GB and an RTX 2070 Super 8 GB, and about the same after 8,192.
Setup now gives --attn-requant q5_0 --loop-bf16 --tail-skip 4 and leaves
expert swaps at the engine's default.

The small-card bundle is VecSzn's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a card that does not hold every expert, setup added --attn-requant q5_0
--loop-bf16 --tail-skip 4 to Inkling 2 Mini's run config without asking.
They lower answer quality: the first two round more coarsely, and
--tail-skip 4 leaves out 9-27% of a token's expert picks on 8 GB cards.
With them the same most likely token comes at 94.3-95.0% of the steps,
against 98.2-99.0% for a second run without them.

Setup now asks ("Use the faster small-card settings?", default no) and
writes them only on yes. --inkling-small-card on|off answers without
asking; --yes takes off. The answer is kept in the run config
("small_card") and a later setup run uses it. A config of an older setup
has no answer, so that run asks again. A card that holds every expert is
not asked, as before.

The small-card bundle is VecSzn's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The setup paragraph quoted the top-1 agreement measured with all four
small-card settings (--expert-swaps 0 included). With the three that
setup now offers: 94.1-97.0% on an RTX 2070 Super 8 GB and a Quadro RTX
4000 8 GB (IQ4_NL and UD-Q2_K_XL), against 98.3-99.3% for a second
default run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
okada-shogo added a commit to okada-shogo/PolyStrata that referenced this pull request Nov 23, 2026
…-card settings, off by default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant